package org.neuedu.chapter08_0625.demo02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class ExceptionDemo01 {
    public static void main(String[] args) {
        // 将一个类加载进方法区
        try {
            FileInputStream file = new FileInputStream("E:\\test.txt");
            Class.forName("org.neuedu.chapter08_0625.demo02.Person1");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        System.out.println(123);
        System.out.println(456);
    }
}
